package com.avetti.commerce.domainmodel;

import java.io.Serializable;

/**
 * 
 * Store the order address info, keep updating with
 * the <code>com.avetti.commerce.domainmodel.Address</code>
 * 
 * @author R.Zhang
 *
 */
public class OrderAddress implements Serializable{
    
    /**
     * 
     */
    private static final long serialVersionUID = 5937358132423677169L;

    private Long orderaddressid;
    
    private long orderdataid;
        
    private int  addresstype;
    
    private String addressdesc;
    
    private String phoneareacode="";

    /** phone number */
    private String phone="";

    /** extension of the phone number */
    private String phoneext="";

    /** fax number */
    private String fax="";

    /** fax area code */
    private String faxareacode="";

    /** e-mail address */
    private String email="";

    /** address 1 */
    private String address1="";

    /** address 2 */
    private String address2="";

    /** address 3 */
    private String address3="";

    /** salutation */
    private String salutation;

    /** firstname */
    private String firstname;

    /** middlename */
    private String middlename;

    /** lastname */
    private String lastname;

    /** postal code */
    private String postal="";

    /** p.o. box */
    private String pobox="";

    /** company */
    private String company;

    /** companytype */
    private String companytype;

    /** id of the country */
    private int countryid=0;

    /** id of the province */
    private int provinceid=0;

    /** id of the another province */
    private String anotherprovince="";

    /** city */
    private String city="";

    /** title ? */
    private String title;

    /** nickname */
    private String nickname="My Address";

    /** checkdefault */
    private short checkdefault=0;

    /** department */
    private String department;

    /** interest */
    private String interest;
    
    /** dayphoneareacode */
    private String dayphoneareacode;
    /** dayphone */
    private String dayphone;
    /** dayphoneext */
    private String dayphoneext;
     
 
    private Isoprovince province;
    
    private Isocountry country;
    
    private Long zoneid;
    
    public Long getZoneid() {
        return zoneid;
    }
    public void setZoneid(Long zoneid) {
        this.zoneid = zoneid;
    }
    public boolean isResidential() {
        return residential;
    }
    public void setResidential(boolean residential) {
        this.residential = residential;
    }
    public boolean isRural() {
        return rural;
    }
    public void setRural(boolean rural) {
        this.rural = rural;
    }
    private boolean residential =false;
    


    private boolean rural =false;
    
    public Isocountry getCountry() {
        return country;
    }
    public void setCountry(Isocountry country) {
        this.country = country;
    }
    public Isoprovince getProvince() {
        return province;
    }
    public void setProvince(Isoprovince province) {
        this.province = province;
    }
    public String getAddress1() {
        return address1;
    }
    public void setAddress1(String address1) {
        this.address1 = address1;
    }
    public String getAddress2() {
        return address2;
    }
    public void setAddress2(String address2) {
        this.address2 = address2;
    }
    public String getAddress3() {
        return address3;
    }
    public void setAddress3(String address3) {
        this.address3 = address3;
    }
    public int getAddresstype() {
        return addresstype;
    }
    public void setAddresstype(int addresstype) {
        this.addresstype = addresstype;
    }
    public String getAnotherprovince() {
        return anotherprovince;
    }
    public void setAnotherprovince(String anotherprovince) {
        this.anotherprovince = anotherprovince;
    }
    public short getCheckdefault() {
        return checkdefault;
    }
    public void setCheckdefault(short checkdefault) {
        this.checkdefault = checkdefault;
    }
    public String getCity() {
        return city;
    }
    public void setCity(String city) {
        this.city = city;
    }
    public String getCompany() {
        return company;
    }
    public void setCompany(String company) {
        this.company = company;
    }
    public String getCompanytype() {
        return companytype;
    }
    public void setCompanytype(String companytype) {
        this.companytype = companytype;
    }
    public int getCountryid() {
        return countryid;
    }
    public void setCountryid(int countryid) {
        this.countryid = countryid;
    }
    public String getDayphone() {
        return dayphone;
    }
    public void setDayphone(String dayphone) {
        this.dayphone = dayphone;
    }
    public String getDayphoneareacode() {
        return dayphoneareacode;
    }
    public void setDayphoneareacode(String dayphoneareacode) {
        this.dayphoneareacode = dayphoneareacode;
    }
    public String getDayphoneext() {
        return dayphoneext;
    }
    public void setDayphoneext(String dayphoneext) {
        this.dayphoneext = dayphoneext;
    }
    public String getDepartment() {
        return department;
    }
    public void setDepartment(String department) {
        this.department = department;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public String getFax() {
        return fax;
    }
    public void setFax(String fax) {
        this.fax = fax;
    }
    public String getFaxareacode() {
        return faxareacode;
    }
    public void setFaxareacode(String faxareacode) {
        this.faxareacode = faxareacode;
    }
    public String getFirstname() {
        return firstname;
    }
    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }
    public String getInterest() {
        return interest;
    }
    public void setInterest(String interest) {
        this.interest = interest;
    }
    public String getLastname() {
        return lastname;
    }
    public void setLastname(String lastname) {
        this.lastname = lastname;
    }
    public String getMiddlename() {
        return middlename;
    }
    public void setMiddlename(String middlename) {
        this.middlename = middlename;
    }
    public String getNickname() {
        return nickname;
    }
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public Long getOrderaddressid() {
        return orderaddressid;
    }
    public void setOrderaddressid(Long orderaddressid) {
        this.orderaddressid = orderaddressid;
    }
    public long getOrderdataid() {
        return orderdataid;
    }
    public void setOrderdataid(long orderdataid) {
        this.orderdataid = orderdataid;
    }

    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getPhoneareacode() {
        return phoneareacode;
    }
    public void setPhoneareacode(String phoneareacode) {
        this.phoneareacode = phoneareacode;
    }
    public String getPhoneext() {
        return phoneext;
    }
    public void setPhoneext(String phoneext) {
        this.phoneext = phoneext;
    }
    public String getPobox() {
        return pobox;
    }
    public void setPobox(String pobox) {
        this.pobox = pobox;
    }
    public String getPostal() {
        return postal;
    }
    public void setPostal(String postal) {
        this.postal = postal;
    }
    public int getProvinceid() {
        return provinceid;
    }
    public void setProvinceid(int provinceid) {
        this.provinceid = provinceid;
    }
    public String getSalutation() {
        return salutation;
    }
    public void setSalutation(String salutation) {
        this.salutation = salutation;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getAddressdesc() {
        return addressdesc;
    }
    public void setAddressdesc(String addressdesc) {
        this.addressdesc = addressdesc;
    }
       
 

}
